/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.seari.mapper;

import java.util.List;

import com.seari.bean.MenuPrivilege;
import com.seari.bean.Role;
import com.seari.bean.User;
import com.seari.pojo.QueryMatch;
import com.seari.pojo.QueryRole;

/**
 *
 * @author Rainbow
 */
public interface RoleMapper
{
    public List<Role> getRoleByParams(QueryRole qur);
    public int getRoleCount();
    public int checkRoleExist(QueryRole qur);
    public int addRole(Role role);
    public int updateRole(Role role);
    public int deleteRole(int urid);
    // 根据urid 查询角色描述
    public List<User> getUserRoleByUrid(int urid);
	// 根据URID 查询角色
	public List<Role> getRoleByUrid(QueryRole qur);
	public List<Role> roleSearch(QueryRole qu);
	
	public String getPmNameByParentId(int parentId);
	
	public List<MenuPrivilege> getMenuByUrids(List<Integer> roleIds);
}
